package com.wang.controller;

import com.wang.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: springbootTest
 * @date :  2022-10-27 18:02
 **/
@RestController
@ResponseBody

public class My1 {
   @RequestMapping("/admin")
    public String one() {
        return "one";
    }
    @Autowired
    Car car;
   @RequestMapping("/car")
    public Car car(){
       return car;
   }

}
